<?php
include 'D:/dingjiangbbs/head.php';
//屏蔽notice错误
error_reporting(E_ALL ^ E_NOTICE);

//定义文件夹路径
$set_right 	= WEB_SITE.'set_up.php';
$web_site   = WEB_SITE;
$views_home = WEB_SITE.'views/home/';
$admin_home = WEB_SITE.'admin/home/';


//查询数据库bbs_user表，得到user信息
$username = $_COOKIE['username'];
//var_dump($username);
$table  = DB_TABLE_USER;
$fields = 'realname,sex,birthday,place,qq,autograph,picture';
$where  = "where username='$username'";
$res    = select($link,$table,$fields,$where);
//var_dump($res);

//传参数给html
$vars   = compact('set_right','web_site','views_home','admin_home','res');;
display('set_up.html',$vars);

include DOC_ROOT.'bottom.php';	//磁盘绝对路径：DOC_ROOT==D:/dingjiangbbs/
